package com.learn.spring.bean;

public class LifeCycle {

    private String des;

    public LifeCycle() {
        System.out.println("第一步 执行构造函数创建实例");
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        System.out.println("第二步 赋值");
        this.des = des;
    }

    public void init() {
        System.out.println("第三步 执行初始化方法");
    }

    public void destroy() {
        System.out.println("第五步 执行销毁方法");
    }
}
